#include "Point.h"
#include "fltk.h"
#include "Window.h"
#include "GUI.h"
#include<vector>



namespace Graph_lib {

struct Position : public Button {
	Position(Point xy, int w, int h, const string& s ,Callback cb)
	:Button(xy,50,50,s,cb)
	{
	}
	Address get_fltk_button_address()
	{
		return pw;
	}
	
	Vector_ref<Position> pr;
	Vector_ref<Address> ar;
	void cb_posi();
	void pushed();

	void draw_position()
	{
	for(int i =0; i<8; ++i){
		for(int j = 0; j<8;++j)
			{
			Position *b = new Position(Point(i+50,j+50),50,50,"rawr", cb_posi);
			pr.push_back(b);
			attach(pr[pr.size()-1]);
			ar.push_back(b->Position::get_fltk_button_address());
			
			}
		}
	}	

	

};
}

